#include "CSettings.h"

CSettings::CSettings(SIrrlichtCreationParameters &params, 
	SGameComponents &gameComponents) 
	: m_sIrrlichtCreationParameters(params), m_sGameComponents(gameComponents)
{ }

dimension2d <u32> CSettings::getScreenResolution() const
{
	return m_sIrrlichtCreationParameters.WindowSize;
}

void CSettings::setScreenResolution( dimension2d <u32> newResolution )
{
	m_sIrrlichtCreationParameters.WindowSize = newResolution;
}

void CSettings::setScreenResolution( u32 width, u32 height )
{
	setScreenResolution(dimension2d <u32> (width, height));
}

void CSettings::setVSynch( const bool & value )
{
	m_sIrrlichtCreationParameters.Vsync = value;
}

bool CSettings::isVsync() const
{
	return m_sIrrlichtCreationParameters.Vsync;
}

void CSettings::setFullScreen( bool value /*= true*/ )
{
	m_sIrrlichtCreationParameters.Fullscreen = value;
}

bool CSettings::getFullScreen() const
{
	return m_sIrrlichtCreationParameters.Fullscreen;
}